<?php
Class Module_Admin_Form_Role extends Engine_Form{

    public function init(){

        $mRole = new Module_Account_Model_Role();
        $permissions = $mRole->getPermissionsByRoleId(1);
        foreach ($permissions as $permission) {
            $element= new Engine_Form_Element_Checkbox($permission['name']);
            $element->setOptions($permission);
            $this->addElement($element);
        }

        $element= new Engine_Form_Element_Submit('Submit');
        $element->setLabel('Сохранить');
        $this->addElement($element);

    }
}